<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Class: Sass::SCSS::StaticParser</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (S)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span> &raquo; <span class='title'><a href="SCSS.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS.html" title="Sass::SCSS (module)">SCSS</a></span>
     &raquo; 
    <span class="title">StaticParser</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/SCSS/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/SCSS/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: Sass::SCSS::StaticParser 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName"><a href="Parser-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/Parser.html" title="Sass::SCSS::Parser (class)">Parser</a></span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next"><a href="Parser-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/Parser.html" title="Sass::SCSS::Parser (class)">Parser</a></li>
          
            <li class="next">Sass::SCSS::StaticParser</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">/var/www/sass-pages/.sass/lib/sass/scss/static_parser.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>A parser for a static SCSS tree. Parses with SCSS extensions, like nested rules and parent selectors, but without dynamic SassScript. This is useful for e.g. <tt><a href="#parse_selector-instance_method" title="Sass::SCSS::StaticParser#parse_selector (method)">parsing selectors</a></tt> after resolving the interpolation.</p>

  </div>
</div>
<div class="tags">
  
</div><div id="subclasses">
  <h2>Direct Known Subclasses</h2>
  <p class="children"><a href="CssParser-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/CssParser.html" title="Sass::SCSS::CssParser (class)">CssParser</a></p>
</div>

  <h2>Constant Summary</h2>
  


  
  
  
  
  
  
  
  

  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#parse_selector-instance_method" title="#parse_selector (instance method)">- (Selector::CommaSequence) <strong>parse_selector</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Parses the text as a selector.</span>
  
</li>

    
  </ul>

  
  
  
  
  
  <h3 class="inherited">Methods inherited from <a href="Parser-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/Parser.html" title="Sass::SCSS::Parser (class)">Parser</a></h3>
  <p class="inherited"><a href="Parser-1.html#initialize-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/Parser.html#initialize-instance_method" title="Sass::SCSS::Parser#initialize (method)">#initialize</a>, <a href="Parser-1.html#parse-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/Parser.html#parse-instance_method" title="Sass::SCSS::Parser#parse (method)">#parse</a>, <a href="Parser-1.html#parse_interp_ident-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/Parser.html#parse_interp_ident-instance_method" title="Sass::SCSS::Parser#parse_interp_ident (method)">#parse_interp_ident</a>, <a href="Parser-1.html#parse_media_query_list-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/Parser.html#parse_media_query_list-instance_method" title="Sass::SCSS::Parser#parse_media_query_list (method)">#parse_media_query_list</a>, <a href="Parser-1.html#parse_supports_condition-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/Parser.html#parse_supports_condition-instance_method" title="Sass::SCSS::Parser#parse_supports_condition (method)">#parse_supports_condition</a></p>

  
  
  
  
  
  <h3 class="inherited">Methods included from <a href="RX.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/RX.html" title="Sass::SCSS::RX (module)">RX</a></h3>
  <p class="inherited"><a href="RX.html#escape_ident-class_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/RX.html#escape_ident-class_method" title="Sass::SCSS::RX.escape_ident (method)">escape_ident</a></p>
<div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <p class="notice">This class inherits a constructor from <a href="Parser-1.html#initialize-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/SCSS/Parser.html#initialize-instance_method" title="Sass::SCSS::Parser#initialize (method)">Sass::SCSS::Parser</a></p>
  
</div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="parse_selector-instance_method">
  
    - (<tt><a href="CommaSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Selector::CommaSequence</a></tt>) <strong>parse_selector</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Parses the text as a selector.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>, <tt>nil</tt>)</span>
      
      
        <span class='name'>filename</span>
      
      
      
        &mdash;
        The file in which the selector appears, or nil if there is no such file. Used for error reporting.
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="CommaSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">Selector::CommaSequence</a></tt>)</span>
      
      
      
      
        &mdash;
        The parsed selector
      
    </li>
  
</ul>
<h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt><a href="SyntaxError.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SyntaxError.html" title="Sass::SyntaxError (class)">Sass::SyntaxError</a></tt>)</span>
      
      
      
      
        &mdash;
        if there&#8217;s a syntax error in the selector
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


18
19
20
21
22
23
24
25</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/scss/static_parser.rb', line 18</span>

def parse_selector
  init_scanner!
  seq = expr!(:selector_comma_sequence)
  expected("selector") unless @scanner.eos?
  seq.line = @line
  seq.filename = @filename
  seq
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:48 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>